﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ForgetCode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		if (!Utility.Util.IsEmptyString(Request.Form["name"]))
		{
			if (!SessionMan.ValidateCheckCode(Request.Form["checkCode"]))
			{
				feedBack.Text = "注册码错啦，你。。。！";
			}
			else
			{
				String question = SE6.UserMan.ResetPasswordStep1(Request, Session);
				if (question == "")
				{
					feedBack.Text = "该用户不存在，您可以去<a href='Register.aspx'>注册</a>此用户！";
				}
				else
				{
					SessionMan.SaveResult(question);
					Response.Redirect("ForgetCodeStep2.aspx");
				}
			}
			name.Value = Request.Form["name"];
		}
		navMenu.InnerHtml = GUI.NavMenu(PageClass.ResetPassword);
    }
}
